import request from '@/utils/request'
/**
 * 页面列表渲染
 */
export function CateListAPI(params) {
  return request({
    url: '/content/cate',
    params
  })
}
/**
 * 页面删除
 */
export function DeleteListAPI(id) {
  return request({
    method: 'DELETE',
    url: `/content/cate/${id}`
  })
}
/**
 * 单个列表数据详情
 */
export function detalitelistAPI(id) {
  return request({
    url: `/content/cate/${id}`
  })
}
/**
 * 编辑
 */
export function putalitelistAPI(data) {
  return request({
    method: 'PUT',
    url: `/content/cate/${data.id}`,
    data
  })
}
/**
 * 添加列表
 */
export function AddeListAPI(data) {
  return request({
    method: 'POST',
    url: '/content/cate',
    data
  })
}
